home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000405_fdc@columbia.edu_Mon Nov 10 10:43:41 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2003-11-18
|
5KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Problem with Kermit spawned from Expect script sending files
Date: 10 Nov 2003 15:29:51 GMT
Organization: Columbia University
Lines: 90
Message-ID: <slrnbqvbnf.i67.fdc@sesame.cc.columbia.edu>
References: <f0bb0f39.0311061216.1ba040a0@posting.google.com> <slrnbqlcid.ooo.fdc@sesame.cc.columbia.edu> <f0bb0f39.0311070527.6ce76ffc@posting.google.com> <slrnbqnbfm.380.fdc@sesame.cc.columbia.edu> <f0bb0f39.0311070946.62574f98@posting.google.com> <slrnbqns98.69r.fdc@sesame.cc.columbia.edu> <slrnbqnsgg.856.fdc@sesame.cc.columbia.edu> <f0bb0f39.0311100537.7a4d4faf@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1068478191 837 128.59.59.56 (10 Nov 2003 15:29:51 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 10 Nov 2003 15:29:51 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14661
In article <f0bb0f39.0311100537.7a4d4faf@posting.google.com>,
newexpectuser wrote:
: Frank da Cruz <fdc@columbia.edu> wrote:
:> ...
:> The script fragment above, then, will return to the C-Kermit> prompt because
:> it has no more commands to execute. Thus you must continue the script
:> to do whatever you want it to do, for example:
:>
:> (wait for shell prompt)
:> lineout "kermit -x" ; Start Kermit server
:> rcd somedirectory ; CD to some directory on the host
:
: I thought this command changed the directory on the remote system.
:
It does.
: I have most of this working (including connecting now), however once I
: get connected to the remote server, I want to change into a specific
: directory on the remote server and I tried the rcd and do a ls -ltr
: command, but it gives me my directory where I execute the script
: (local machine) ?
:
If a command does something that surprises you, give a HELP command for
it to see its documentation:
C-Kermit>help ls
Syntax: LS [ args ]
Runs "ls" with the given arguments.
C-Kermit>help rdirectory
RDIRECTORY is a short form of REMOTE DIRECTORY.
C-Kermit>help remote directory
Syntax: REMOTE DIRECTORY [ filespec ]
Asks the Kermit or FTP server to provide a directory listing of the named
file(s) or if no file specification is given, of all files in its current
directory. Synonym: RDIR.
C-Kermit>help directory
Syntax: DIRECTORY [ switches ] [ filespec [ filespec [ ... ] ] ]
If LOCUS is REMOTE or LOCUS is AUTO and you have an FTP connection,
this command is equivalent to REMOTE DIRECTORY (RDIR). Otherwise:
Lists local files. The filespec may be a filename, possibly containing
wildcard characters, or a directory name. If no filespec is given, all
files in the current directory are listed. If a directory name is given,
all the files in it are listed. Multiple filespecs can be given.
Optional switches:
/BRIEF List filenames only.
/VERBOSE + Also list permissions, size, and date.
/FILES Show files but not directories.
/DIRECTORIES Show directories but not files.
/ALL + Show both files and directories.
/ARRAY:&a Store file list in specified array (e.g. \%a[]).
/PAGE Pause after each screenful.
/NOPAGE Don't pause after each screenful.
/DOTFILES Include files whose names start with dot (period).
/NODOTFILES + Don't include files whose names start with dot.
/FOLLOWLINKS Follow symbolic links.
/NOFOLLOWLINKS + Don't follow symbolic links.
/BACKUP + Include backup files (names end with .~n~).
/NOBACKUPFILES Don't include backup files.
/OUTPUT:file Store directory listing in the given file.
/HEADING Include heading and summary.
/NOHEADING + Don't include heading or summary.
/SUMMARY Print only count and total size of matching files.
/XFERMODE Show pattern-based transfer mode (T=Text, B=Binary).
/TYPE: Show only files of the specified type (text or binary).
/MESSAGE:text Add brief message to each listing line.
/NOMESSAGE + Don't add message to each listing line.
/NOXFERMODE + Don't show pattern-based transfer mode
/ISODATE + In verbose listings, show date in ISO 8061 format.
/ENGLISHDATE In verbose listings, show date in "English" format.
/RECURSIVE Descend through subdirectories.
/NORECURSIVE + Don't descend through subdirectories.
/SORT:key Sort by key, NAME, DATE, or SIZE; default key is NAME.
/NOSORT + Don't sort.
/ASCENDING + If sorting, sort in ascending order.
/REVERSE If sorting, sort in reverse order.
Factory defaults are marked with +. Default for paging depends on SET
COMMAND MORE-PROMPTING. Use SET OPTIONS DIRECTORY [ switches ] to change
defaults; use SHOW OPTIONS to display customized defaults.
- Frank